home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7092 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news1.cris.com!news
  2. From: aubrey@concentric.net (Aubrey Harrison)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What to do when feof() is NOT feof()
  5. Date: 18 Feb 1996 18:41:23 GMT
  6. Organization: Concentric Internet Services
  7. Message-ID: <4g7rsj$fnf@spectator.cris.com>
  8. References: <824554814snz@metsys.demon.co.uk> <4g4vpp$52f@spectator.cris.com> <danpop.824614833@rscernix>
  9. NNTP-Posting-Host: cnc022033.concentric.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.6
  13.  
  14. In article <danpop.824614833@rscernix>, danpop@mail.cern.ch says...
  15. >
  16. >In <4g4vpp$52f@spectator.cris.com> aubrey@concentric.net (Aubrey Harrison) 
  17. writes:
  18. >
  19. >
  20. >>I think if you open the file in "text" mode the end of the file is indicated 
  21. by 
  22. >>the EOF marker (ASCII 26 I believe). To avoid this you must open the file in 
  23. >>binary mode. 
  24. >
  25. >Once again: ignorants and idiots are kindly asked to refrain from posting
  26. >their thoughts and beliefs to this newsgroup.
  27. >
  28. >If you don't KNOW what you're talking about, just keep your "mouth" shut.
  29. >This is comp.lang.c, not talk.rumors.
  30. >
  31. >Dan
  32. >--
  33. >Dan Pop
  34. >CERN, CN Division
  35. >Email: danpop@mail.cern.ch 
  36. >Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  37.  
  38. Who died and left you king. Most of the messages I have read from you do 
  39. nothing but harass and ridicule people, rarely ever offering an help or 
  40. suggestions. I may not be an expert but I know if you open a file with fopen( 
  41. "filename", "rt"), then fgets stops reading when it finds a ascii 26 and 
  42. signals end-of-file. If you open it with fopen( "filename","rb") it reads until 
  43. the real end-of-file. I noticed in your smart-ass reply you did not offer any 
  44. answers to his problem. Maybe you should take you own advice.
  45.  
  46.